package org.hd.permission.service;

import org.hd.permission.dao.PermissionDao;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

@Service
public class PermissionServiceImpl implements PermissionService{

    @Resource
    PermissionDao permissionDao;

    @Override
    public List<Map<String, String>> getRightList() {
        List<Map<String, String>> rightList = permissionDao.getRightList();
        if(rightList != null){
            return rightList;
        }
        return null;
    }
}
